home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / test / test_pep263.py < prev    next >
Text File  |  2005-10-18  |  569b  |  24 lines

  1. #! -*- coding: koi8-r -*-
  2. # This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
  3.  
  4. import unittest
  5. from test import test_support
  6.  
  7. class PEP263Test(unittest.TestCase):
  8.  
  9.     def test_pep263(self):
  10.         self.assertEqual(
  11.             u"≡╔╘╧╬".encode("utf-8"),
  12.             '\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
  13.         )
  14.         self.assertEqual(
  15.             u"\≡".encode("utf-8"),
  16.             '\\\xd0\x9f'
  17.         )
  18.  
  19. def test_main():
  20.     test_support.run_unittest(PEP263Test)
  21.  
  22. if __name__=="__main__":
  23.     test_main()
  24.